package com.youzhi.backend.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Set;

@Data
@ApiModel("登陆成功响应")
public class LoginResponse {


    @ApiModelProperty("用户主键")
    private Long userId;


    @ApiModelProperty("用户名称")
    private String userName;


    @ApiModelProperty("webSocketId,前端用户使用这个id连接websocket服务器")
    private String webSocketId;


    @ApiModelProperty("用户具备的权限")
    private Set<String> privileges;


}
